package com.qf.pojo;

import org.springframework.util.StringUtils;

// 作者表
public class Authors implements CheckNull {

  private long authorid;//作者ID
  private String authorname;//作者笔名
  private String authordescription;//作者简介
  private long datastatus;//数据状态   0为可用 1 为禁用、、、

  @Override
  public boolean isNull() {
    return !StringUtils.isEmpty(authorname)||!StringUtils.isEmpty(authordescription);
  }

  public long getAuthorid() {
    return authorid;
  }

  public void setAuthorid(long authorid) {
    this.authorid = authorid;
  }


  public String getAuthorname() {
    return authorname;
  }

  public void setAuthorname(String authorname) {
    this.authorname = authorname;
  }


  public String getAuthordescription() {
    return authordescription;
  }

  public void setAuthordescription(String authordescription) {
    this.authordescription = authordescription;
  }


  public long getDatastatus() {
    return datastatus;
  }

  public void setDatastatus(long datastatus) {
    this.datastatus = datastatus;
  }

  @Override
  public String toString() {
    return "Authors{" +
            "authorid=" + authorid +
            ", authorname='" + authorname + '\'' +
            ", authordescription='" + authordescription + '\'' +
            ", datastatus=" + datastatus +
            '}';
  }
}
